package com.classtest.test3;

public class Snake extends Monster{
    public Snake(String name, int blood, int atk) {
        super(name, blood, atk);
    }

    public Snake() {
    }
    //攻击
    @Override
    public void attackWay() {
        System.out.println("疯狂蛇信子");
    }
    //移动
    @Override
    public void moveWay() {
        System.out.println("我是蛇怪，s型拐弯you know？！");
    }
    //补血
    public int inblood(int blood){
        if (blood<10){
            System.out.print("施展大蛇补血术....");
            return blood+20;
        }
        return blood;
    }
}
